package com.example.bigdata.scala.日志log4j

import org.apache.log4j.{Logger, PropertyConfigurator}

object Log4jDemo {
  def main(args: Array[String]): Unit = {
    val logger = Logger.getLogger(Log4jDemo.getClass)
    val log4jFile = "conf" + "/log4j.properties"
    PropertyConfigurator.configure(log4jFile)
    logger.info("this is info message .")
    logger.debug("this is debug message .")

  }

}
